const Mock = require("mockjs");
const { Random } = Mock;

module.exports = [
  // 注册
  {
    path: "/api/user/register",
    method: "post",
    response() {
      return {
        code: 200,
        data: {},
      };
    },
  },
  // 登录
  {
    path: "/api/user/login",
    method: "post",
    response() {
      return {
        code: 200,
        data: {
          token: Random.word(20),
        },
      };
    },
  },
];
